package collectionDemo;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author Ajie
 * @date 8/6/21
 * @function
 */
public class unmodifiableDemo {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        List<String> strings = Collections.unmodifiableList(arrayList);

        List<String> strings1 = Collections.synchronizedList(arrayList);


    }
}
